<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnTipInCategoryTable extends AbstractMigration
{
    public function up()
    {
        $this->table('category')
            ->addColumn('tip', 'text', ['null' => true, 'comment' => '帮助介绍'])
            ->save();
    }

    public function down()
    {
        $this->table('category')->removeColumn('tip')->save();
    }
}
